<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		
		<meta charset="utf-8" />
		<title></title>
		
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<!--提示框-->
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
		<script type="text/javascript">
		//保存
		function settingGift(){
			$("#Form").submit();
			$("#centerOfMainFrame").hide();
			$("#centerOfMainFrame2").show();
		}
	</script>
</head>

<body>
	<form action="<%=basePath%>/product/settingGift.do" name="Form" id="Form" method="post">
	<input type="hidden" name="product_id" id="product_id" value="${pageData.product_id }"/>
		<div id="centerOfMainFrame" style="margin-left: 5px; margin-right: 5px; margin-top: 10px;">
		<font color="green">温馨提示：此商品设置为展示礼品后不支持取消设置，如果该礼品不需要展示可通过在商品列表将此商品下架！<p></font>
		<table>
			<tr>
				<td>操作:</td>
				<td>
					<select id="isGift" name="isGift">
						<option value="1" <c:if test="${pageData.isGift == 1 }">selected</c:if> >设置为礼品</option>
						<%-- <option value="0" <c:if test="${pageData.isGift == 0 }">selected</c:if> >取消设置为礼品</option> --%>
					</select>	
				</td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="2">
					<a class="btn btn-mini btn-primary" onclick="settingGift();">提交</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		<div id="centerOfMainFrame2" class="center" style="display:none"><br/><br/><br/><img src="static/images/jzx.gif" style="width: 50px;" /><br/><h4 class="lighter block green"></h4></div>
	</form>
	
</body>

<script type="text/javascript">
	$(top.hangge());
</script>
</html>